{include file="public/common" /}

<div>
    <form class="layui-form" id="order_form">
        <div class="layui-form-item" style="margin-top: 10px">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" name="search_" value="<?php echo isset($param['search_'])?$param['search_']:''?>" autocomplete="off" class="layui-input" placeholder="搜索交易码/用户电话">
                </div>
            </div>
            <div class="layui-inline">
                <button type="submit" class="layui-btn" >筛选</button>
            </div>
        </div>
    </form>
    <table class="layui-table" width="900px">
        <thead>
        <tr style="text-align: center;">
            <td>交易码</td>
            <td>交易金额</td>
            <td>交易来源</td>
            <td>交易去向</td>
            <td>交易类型</td>
            <td>交易时间</td>
            <td>支付状态</td>
            <td>备注</td>
        </tr>
        </thead>
        <tbody>
        {volist name="trade_list" id="item"}
        <tr style="text-align: center;">
            <td> {$item.code}</td>
            <td> {$item.value}</td>
            <td> {$item.from}</td>
            <td> {$item.to}</td>
            <td>
                <?php echo $trade::getTradeTypeName($item->trade_type); ?>
            </td>
            <td> {$item.updated_time}</td>
            <td> {if condition="$item.is_pay == 0"} 未支付{elseif condition="$item.is_pay == 1"} 已支付{else} 未知{/if}</td>
            <td> {$item.memo}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    {$trade_list->render()}
</div>
